﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using Sunlit.Business.Users.Dto;
using System.ComponentModel.DataAnnotations;

namespace Sunlit.Business.Policies.Dto
{
    [AutoMap(typeof(PolicyMessage))]
    public class PolicyMessageDto:CreationAuditedEntityDto<long>
    {
        /// <summary>
        /// 留言联系人
        /// </summary>
        [StringLength(32)]
        public string LinkMan { get; set; }
        /// <summary>
        /// 留言人电话
        /// </summary>
        [StringLength(32)]
        public string PhoneNumber { get; set; }
        /// <summary>
        /// 留言内容
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 留言文章ID
        /// </summary>
        public long PolicyId { get; set; }
        public virtual PolicyDto Policy { get; set; }
        /// <summary>
        /// 留言接收者ID
        /// </summary>
        public long? ReceiverId { get; set; }
        public virtual UserDto Receiver { get; set; }
    }
}
